home *** CD-ROM | disk | FTP | other *** search
- 10 ifl=.thenl=1:load"repl c000",8,1
- 20 sys49152
- 30 print"[147]antireplace written by werner hunger '89"
- 40 :
- 50 print"wo soll die neue routine liegen"
- 60 input"(hex-adr)";h$:print
- 70 ifleft$(h$,1)="$"thenh$=right$(h$,len(h$)-1)
- 80 iflen(h$)<>4thenprint"4 stellen !":forx=.to500:next:run30
- 90 a$=h$:gosub300:ad=a:gosub350
- 100 f$="@:repl "+h$+"/"+str$(ad)+",p,w":print:print
- 110 open1,8,2,f$:print#1,chr$(l)chr$(h);
- 120 a=ad-49152:gosub350:fl=l:fh=h
- 130 readw
- 140 forx=0to176
- 150 a=peek(49152+x)
- 160 ifx<>wthen260
- 170 readw
- 180 ifhlthen220
- 190 a=a+fl:ifa>255thena=a-256:ue=1
- 200 ifa<.thena=a+256:ue=-1
- 210 goto250
- 220 a=a+fh+ue:ue=.
- 230 ifa>255thena=a-256
- 240 ifa<.thena=a+256
- 250 hl=not hl
- 260 print#1,chr$(a);
- 270 print176-x"[157] [145]":next
- 280 close1:end
- 290 :
- 300 a1$=left$(a$,2):gosub310:a=e*256:a1$=right$(a$,2):gosub310:a=a+e:return
- 310 a2$=left$(a1$,1):gosub330:e=a1*16:a2$=right$(a1$,1):gosub330:e=e+a1
- 320 return
- 330 a1=asc(a2$)-48:ifa1>9thena1=a1-7
- 340 return
- 350 h=int(a/256):l=a-h*256:return
- 360 :
- 370 data1,3,11,13,27,28,49,51,68,69,76,77,88,89,105,106,118,119,151,152,0
-